package com.googlecode.moneyManager.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Entity;
/**
 * 
 * @author Sergiy Doroshenko
 * Jul 16, 2008 12:14:54 AM
 */
@Embeddable
public class Address implements Serializable{
    private String city;
    private String street;
    private String house;
    private String apportment;
    //@Column(nullable = false)
    public String getApportment() {
        return apportment;
    }
    public void setApportment(String apportment) {
        this.apportment = apportment;
    }
   @Column(nullable = false)
    public String getCity() {
        return city;
    }
    public void setCity(String city) {
        this.city = city;
    }
   // @Column(nullable = false)
    public String getHouse() {
        return house;
    }
    public void setHouse(String house) {
        this.house = house;
    }
   // @Column(nullable = false)
    public String getStreet() {
        return street;
    }
    public void setStreet(String street) {
        this.street = street;
    }
}
 
